package com.loveprogrammer.engine;

import com.loveprogrammer.model.Character;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName AttackResult
 * @Description 攻击结果返回
 * @Author admin
 * @Date 2024/2/22 11:13
 * @Version 1.0
 */
@Data
public class AttackResult {

    private Boolean success;

    private List<String> content;

    /***
     * 阵亡的角色
     */
    private List<Character> deadCharacters;

    public AttackResult(Boolean success, List<String> content, List<Character> deadCharacters) {
        this.success = success;
        this.content = content;
        this.deadCharacters = deadCharacters;
    }

    public AttackResult(Boolean success, String line, List<Character> deadCharacters) {
        this.success = success;
        content = new ArrayList<>();
        content.add(line);
        this.deadCharacters = deadCharacters;
    }


}
